
import Vue from 'vue'
import Router from 'vue-router'
import mainPage from '@/components/mainPage'

// 缴费页面
import paySign from '@/components/pay/paySign'
import addPay from '@/components/pay/addPay'
import signed from '@/components/pay/signed'
import numSigned from '@/components/pay/numSigned'
import applySign from '@/components/pay/applySign'

import paidFee from '@/components/pay/paidFee'
import Pay from '@/components/pay/Pay'
import waitPay from '@/components/pay/waitPay'
import payingNow from '@/components/pay/payingNow'
import contactList from '@/components/pay/contactList'
//import payParty from '@/components/pay/payParty'

import payDaliy from '@/components/pay/payDaily'
import payParty from '@/components/pay/payParty'
import payPartyList from '@/components/pay/payparty_list'
import payPartyNum from '@/components/pay/payParty_num'
import payPartyDetail from '@/components/pay/payParty_payDetail'
import successDaily from '@/components/pay/successDaily'


//我的
import myNew from '@/components/mine/myNew'
import myInfo from '@/components/mine/myInfo'
import myInfo_pay from '@/components/mine/myInfo_pay'
import myInfo_info from '@/components/mine/myInfo_info'
import myInfo_wallet from '@/components/mine/myInfo_wallet'
import myInfo_setting from '@/components/mine/myInfo_setting'
import passWordType from '@/components/mine/passWord_type'
import myInfo_payForOther from '@/components/mine/myInfo_payForOther'
import myInfo_payList from '@/components/mine/myInfo_payList'
import myInfo_payNum from '@/components/mine/myInfo_payNum'
import myNew_details from '@/components/mine/myNew_details'
import myInfo_details from '@/components/mine/myInfo_payDetail'



import enpty from '@/components/common/enpty'

Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      component: mainPage
    },
    //缴费
    {
      path: '/pay/paySign',
      component: paySign
    },
    {
      path: '/pay/addPay',
      component: addPay
    },
    {
      path: '/pay/signed',
      component: signed,
      // meta: {
      //   requireAuth: true  // 添加该字段，表示进入这个路由是需要登录的
      // }
    },
    {
      path: '/pay/applySign',
      component: applySign
    },
    {
      path: '/pay/paidFee',
      component: paidFee
    },
    {
      path:"/pay/payDaliy",
      component:payDaliy
    },
    {
      path: '/pay/Pay',
      component: Pay
    },
    {
      path: '/pay/waitPay',
      component: waitPay
    },
    {
      path: '/pay/payingNow',
      component: payingNow
    },
    {
      path: '/pay/contactList',
      component: contactList
    },
    {
      path: '/pay/payParty',
      component: payParty
    },
    {
      path: '/pay/payparty_list',
      component: payPartyList
    },

    {
      path: '/pay/payParty_num',
      component: payPartyNum
    },
    {
      path: '/pay/payParty_payDetail',
      component: payPartyDetail
    },



    {
      path: '/pay/successDaily',
      component: successDaily
    },
    //表示已经确定缴费编号的详细页面状态
    {
      path: '/pay/numSigned',
      component: numSigned
    },


    //消息
    {
      path: '/mine/myNew',
      component: myNew
    },
    {
      path: '/mine/myNew_details',
      component: myNew_details
    },

    {
      path: '/common/enpty',
      component: enpty
    },

    // 个人中心
    {
      path: '/mine/myInfo',
      component: myInfo
    },
    {
      path: '/mine/myInfo_pay',
      component: myInfo_pay
    },
    {
      path: '/mine/myInfo_info',
      component: myInfo_info
    },
    {
      path: '/mine/myInfo_setting',
      component: myInfo_setting
    },
    {
      path: '/mine/myInfo_wallet',
      component: myInfo_wallet
    },
    {
      path: '/mine/passWord_type',
      component: passWordType
    },
    // 为他人缴费
    {
      path: '/mine/myInfo_payForOther',
      component: myInfo_payForOther
    },
    {
      path: '/mine/myInfo_payList',
      component: myInfo_payList
    },
    {
      path: '/mine/myInfo_payNum',
      component: myInfo_payNum
    },
    {
      path: '/mine/myInfo_payDetail',
      component: myInfo_details
    }
  ]
})
